﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="WorkTemplateSrhForm.aspx.cs" Inherits="App_Input_WorkTemplateSrhForm"
    Title="工作模版查询" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table width="100%">
        <tr>
            <td>
                <table class="table_border_line">
                    <tr>
                        <td align="left" colspan="6">

                            <script language="javascript">
                                (new TitleBar('SearchBar', '检索条件')).showBar();
                            </script>

                        </td>
                    </tr>
                    <tr>
                        <td style="width: 10%; background: #ffffff" height="24"></td>
                        <td style="background: #ffffff; text-align: center;" class="list_data_bg_left" nowrap colspan="4">模版名称：&nbsp;<asp:TextBox
                            ID="txtName" runat="server" MaxLength="32" Width="110px"></asp:TextBox></td>
                        <td style="width: 10%; background: #ffffff"></td>
                    </tr>
                    <tr>
                        <td height="" style="background: #ffffff; width: 10%; height: 8px;"></td>
                        <td class="list_data_bg_left" nowrap="nowrap" style="background: #ffffff; width: 10%; height: 8px;">
                        </td>
                        <td align="left" style="background: #ffffff; width: 15%; height: 8px;"></td>
                        <td class="list_data_bg_left" nowrap="nowrap" style="background: #ffffff; width: 25%; height: 8px;">
                        </td>
                        <td align="left" style="background: #ffffff; width: 15%; height: 8px;"></td>
                        <td style="background: #ffffff; width: 10%; height: 8px;"></td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td style="height:15px"></td>
        </tr>
        <tr>
            <td align="center" style="height: 22px"><asp:Button ID="btnNew" runat="server" Text=" 新 建 " CssClass="button" OnClick="btnNew_Click"
                 />
                &nbsp;<asp:Button ID="btnSearch" runat="server" Text=" 检 索 " CssClass="button"
                OnClick="btnSearch_Click" /></td>
        </tr>
    </table>
    <div id="Div1">
        <table width="100%" runat="server" id="tableRst">
            <tr>
                <td align="left">

                    <script language="javascript">
                        (new TitleBar('SearchBar', '检索结果')).showBar();
                    </script>

                </td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="viewSrhRst" runat="server" AutoGenerateColumns="False" CssClass="GridView_table"
                        DataKeyNames="TemplateId" BorderStyle="Solid" BorderWidth="3px" EnableViewState="False"
                        OnRowCommand="viewSrhRst_RowCommand" OnPageIndexChanging="viewSrhRst_PageIndexChanging" AllowPaging="True">
                        <Columns>
                            <asp:BoundField HeaderText="模版编号" DataField="TemplateId" Visible="False">
                                <HeaderStyle Width="0px" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_left" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="模版名称" DataField="TemplateName">
                                <ItemStyle CssClass="GridView_item_left" />
                                <HeaderStyle CssClass="GridView_head_grayblue" />
                            </asp:BoundField>
                            <%--<asp:BoundField HeaderText="最后更新日期" DataField="UpdDate" DataFormatString="{0:yyyy/MM/dd}"
                                HtmlEncode="False">
                                <ItemStyle CssClass="GridView_item_center" />
                                <HeaderStyle Width="10%" CssClass="GridView_head_grayblue" />
                            </asp:BoundField>--%>
                            <asp:ButtonField ButtonType="Image" CommandName="Details" HeaderText="详细" ImageUrl="~/images/info.gif"
                                Text="详细">
                                <ItemStyle CssClass="GridView_item_center" />
                                <HeaderStyle CssClass="GridView_head_grayblue" Width="65" />
                            </asp:ButtonField>
                        </Columns>
                        <PagerSettings Mode="NumericFirstLast" />
                        <PagerStyle HorizontalAlign="Right"/>
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
